package com.example.sc.learn.dao;

import com.example.sc.learn.entity.BiningRoom;
import com.example.sc.learn.entity.EatRecord;
import com.example.sc.learn.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * Created by baipan
 * Date: 2019-03-30
 */
public interface BiningDao {


    void insertBinBingRoom(@Param("entity") BiningRoom entity);

    BiningRoom selectBiningRoomByCode(@Param("biningCode") String biningCode);

    List<EatRecord> queryBiningByUserCode(@Param("userCode") String userCode);

    List<EatRecord> queryBiningByBiningCode(@Param("biningCode") String biningCode);

    void insertEatRecord(@Param("entity") EatRecord eatRecord);

    List<BiningRoom> selectAllBiningRoom();

    List<EatRecord> selectEatRecordByBiningCode(@Param("biningCode") String biningRoomCode);

    List<User> selectTopThreeUser(@Param("biningCode") String biningRoomCode);
}
